<?php

namespace Apps\Common\Enum;


class ActivityState extends Enum
{
    /**
     * 删除
     */
    //const Delete = -1;
    /**
     * 等待发布
     */
    const WaitPush = 0;
    /**
     * 正常
     */
    const Normal = 1;
    /**
     * 已结束
     */
    const End = 2;

    public static function valuesExplain()
    {
        return [
            //'-1' => '删除',
            '0' => '待发布',
            '1' => '正常',
            '2' => '已结束'
        ];
    }

    public static function valueToStr($v)
    {
        $data = self::valuesExplain();
        if(isset($data[strval($v)])) {
            return $data[strval($v)];
        }
        return '';
    }
}